package com.wenda.homeschooedu.biz;

import java.util.List;

import com.wenda.homeschooedu.dao.Iscore;
import com.wenda.homeschooedu.daoimpl.ScoreService;
import com.wenda.homeschooedu.model.Score;

public class ScoreManager {
	Iscore service = null;

	public ScoreManager() {
		service = new ScoreService();
	}
	/**
	 * 成绩数据管理类，获得成绩单
	 * @param class_Id 班级编号
	 * @param year	哪一年
	 * @param term  哪一学期
	 * @param exam_id 哪一次考试
	 * @param orderBy  按什么样的顺序排序（0、总分 ；1、语文；2、数学；3、英语）
	 * @return
	 */
	public List<Score> getStudentScores(int class_id, int year, int term,
			int exam_id, int orderBy) {
		return service.getScoresByClass(class_id, year, term, exam_id, orderBy);
	}

}
